package com.xxx.lock;

import com.sun.xml.internal.bind.v2.runtime.output.SAXOutput;

/**
 * @version v1.0
 * @Description:
 * @Author zhanzhongxin
 * @Date 2021/8/2 11:08
 * @Copyright 博为峰
 */
public class DeadLock implements Runnable {

    private Object lock1 = new Object();

    @Override
    public void run() {
        synchronized (lock1) {
            System.out.println(Thread.currentThread().getName() + ",abc");
        }
    }
}
